import request from '@/api/request'

export interface Badge {
  id: number
  name: string
  description?: string
  unlocked?: boolean
  [k: string]: any
}

export async function listBadges() {
  return request<Badge[]>({
    url: '/badges',
    method: 'GET',
  })
}
